﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Microserve.TeleEye.Web.Utility
{
    public class Validators
    {
        public static bool ValidateSectionName(string sectionName)    
        {
            bool valid = false;
            switch (sectionName)
            {
                case "technologyhome":
                case "corporatehome":
                case "productshome":
                case "applicationhome":
                case "supporthome":
                case "videorecordingserver":
                case "networkcameras":
                case "networkvideomonitoring":
                case "speeddomes":
                case "wheretobuyhome":
                case "standalonedvr": 
                case "career":
                    valid = true;
                    break;
                default:
                    valid = false;
                    break;
            }

            return valid;
        }
    }
}
